package com.demo.proxy.cglibproxy;

import net.sf.cglib.proxy.Enhancer;

public class mainTest {

	public static void main(String[] args) {
		CglibProxy cglibProxy = new CglibProxy();  
		  
        Enhancer enhancer = new Enhancer();  
        enhancer.setSuperclass(LoginRigisterMapper.class);  
        enhancer.setCallback(cglibProxy);  
  
        LoginRigisterMapper o = (LoginRigisterMapper)enhancer.create();  
        o.selectOne(123);  
	}
}
